package com.cuit.bysj.dao;

import java.util.List;

import com.cuit.bysj.entities.Student;

public class StuDao extends BaseDao {
	/*
	 * 查询学生列表
	 */

	@SuppressWarnings("rawtypes")
	public List querylist(String hql) {

		List list = getSession().createQuery(hql).list();

		return list;
	}

	public Student getByid(Integer id) {
		return (Student) getSession().get(Student.class, id);
	}

	public void updateStu(Student stu){
		getSession().update(stu);
	}
}
